package com.app.repository.impl;

import com.app.model.main.EmpiricalValueRecord;
import com.app.repository.interfaces.EmpiricalValueRecordMapper;
import com.app.support.dao.MybatisDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

/**
 * @author triplel
 * @create 2018-05-08 10:33
 */

@Repository
public class EmpiricalValueRecordMapperImpl implements EmpiricalValueRecordMapper {

    final String namespace = "com.app.dao.main.EmpiricalValueRecordMapper";

    @Autowired
    private MybatisDao mybatisDao;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return mybatisDao.delete(namespace,".deleteByPrimaryKey",id);
    }

    @Override
    public int insert(EmpiricalValueRecord record) {
        return mybatisDao.insert(namespace,".insert",record);
    }

    @Override
    public int insertSelective(EmpiricalValueRecord record) {
        return mybatisDao.insert(namespace,".insertSelective",record);
    }

    @Override
    public EmpiricalValueRecord selectByPrimaryKey(Long id) {
        return mybatisDao.get(namespace,".selectByPrimaryKey",id);
    }

    @Override
    public int updateByPrimaryKeySelective(EmpiricalValueRecord record) {
        return mybatisDao.update(namespace,".updateByPrimaryKeySelective",record);
    }

    @Override
    public int updateByPrimaryKey(EmpiricalValueRecord record) {
        return mybatisDao.update(namespace,".updateByPrimaryKey",record);
    }
}
